package javashiyanbaogao;

public class Animal {
    interface Animal1 {
        void sleep();
    }

    class Cat implements Animal1{
        public void sleep() {
            System.out.println("Cat is sleeping.");
        }

        public void catchMouse() {
            System.out.println("Cat is catching a mouse.");
        }
    }

    public class Example12 {
        public void main(String[] args) {
            Animal1 myCat = new Cat();
            myCat.sleep();
        }
    }
}
